import Cookies from 'js-cookie'

const TokenKey = 'ACCESS_TOKEN';
const TokenType = 'TOEKN_TYPE';

export function getToken() {
  return Cookies.get(TokenKey)
}
export function getUserId() {
  return Cookies.get('USER_ID')
}
export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getTokenType() {
  return Cookies.get(TokenType)
}

export function setTokenType(type) {
  return Cookies.set(TokenType, type)
}

export function removeTokenType() {
  return Cookies.remove(TokenType)
}



